macro(build_test_project OBJ)
  include_directories(
    ${CMAKE_CURRENT_SOURCE_DIR}
	${PROJECT_SOURCE_DIR}
	${PROJECT_SOURCE_DIR}/util
	)

	# 生成exe
	add_executable(${OBJ} ${OBJ}.cpp )

	target_link_libraries( ${OBJ} util )

endmacro()




build_test_project(Chapter_1)
build_test_project(Chapter_2)
build_test_project(Chapter_3)
build_test_project(Chapter_4)
build_test_project(Chapter_5)
build_test_project(Chapter_6)
build_test_project(Chapter_7)
build_test_project(Chapter_8)
build_test_project(Chapter_9)
build_test_project(Chapter_10)
build_test_project(Chapter_11)
build_test_project(Chapter_12)
build_test_project(Chapter_13)
build_test_project(Chapter_14)
build_test_project(Chapter_15)
build_test_project(Chapter_16)
build_test_project(Chapter_17)
build_test_project(Chapter_18)